package com.bluesky.jwf.component.event;

import java.io.Serializable;

import com.bluesky.jwf.component.Component;

public interface EventHandler extends Serializable {
	/**
	 * that's the pain of using callback to simulate modal-dialog.
	 * 
	 * @param target
	 *            can be null if don't care
	 * @param parameter
	 *            can be any value
	 * @param onComplete
	 *            nullable.
	 * 
	 */
	void handle(Component target, Object parameter, EventHandler onComplete);
	void handle(Component target, Object parameter);
}
